package com.vitas.coin.data.room

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Query
import androidx.room.Upsert
import com.vitas.coin.data.bean.ChildrenVoiceBean

@Dao
interface CollectDao {

    @Upsert
    fun upsert(ChildrenVoiceBean: ChildrenVoiceBean)

    @Query("SELECT * FROM ChildrenVoiceBean ORDER BY id DESC")
    fun queryAll(): List<ChildrenVoiceBean>


    @Delete
    fun delete(ChildrenVoiceBean: ChildrenVoiceBean)

}